import java.util.Scanner;

public class Ex4_21{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.print("Loan Amount: ");
		double loan = input.nextDouble();
		System.out.print("Number of Years: ");
		int year = input.nextInt();
		System.out.print("Interest Rate\t\tMonthly Payment\t\tTotal Payment\n");
		double r = 0.05;
		for (int i = 0; i <= 24; i++){
			double mr = r / 12;
			double mp = loan * mr / (1 - 1/Math.pow(1+mr, year*12));
			double tp = mp * 12 * year;
			System.out.printf("%.3f%%\t\t\t%.2f\t\t\t%.2f\n", r*100, mp, tp);
			r += 0.00125;
		}
	}
}